//"procsp.sc","Procedury dokumentu sprzedaży","\Procedury\",0,1.0.0,SYSTEM

#include "MobileHandel - include"

int Sub OnAddNewDokument(long lId)
	OnAddNewDokument = 0
EndSub

int Sub OnBeforeInsert(long lId)
	int type = ReturnContractorStatus(lId)
	if(type !=2) then
		if(type ==6) then
			OnBeforeInsert = ContractorsIsNotVerifiedInsert()
			Exit
		endif
		if(type ==4) then
			OnBeforeInsert = BuyerIsNotVerifiedInsert()
			Exit
		endif
		if(type == 5) then
			OnBeforeInsert = RecipientIsNotVerifiedInsert()
			Exit
		endif
	endif
OnBeforeInsert = 0
EndSub

int Sub OnAfterInsert(long lId)
	OnAfterInsert = 0
EndSub

int Sub OnKhChanged(long lId)
	OnKhChanged = 0
EndSub

int Sub OnBeforeEdit(long lId)
	OnBeforeEdit = 0
EndSub

int Sub OnBeforeBuforEdit(long lId)
	OnBeforeBuforEdit = 0
EndSub

int Sub OnAfterUpdate(long lId)
	OnAfterUpdate = 0
EndSub

int Sub OnAfterBuforUpdate(long lId)
	OnAfterBuforUpdate = 0
EndSub

int Sub OnBeforeDelete(long lId)
	OnBeforeDelete = 0
EndSub

int Sub OnBeforeBuforDelete(long lId)
	OnBeforeBuforDelete = 0
EndSub

int Sub OnAfterDelete(long lId)
	OnAfterDelete = 0
EndSub

int Sub OnAfterBuforDelete(long lId)
	OnAfterBuforDelete = 0
EndSub

int Sub OnBeforeAnuluj(long lId)
	OnBeforeAnuluj = 0
EndSub

int Sub OnTwChanged(long lId)
	OnTwChanged = 0
EndSub

